home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / libg_261.zip / libg_261 / libg++ / etc / trie-gen / Makefile.in < prev    next >
Makefile  |  1993-04-19  |  2KB  |  57 lines

  1. # Copyright (C) 1989, 1992, 1993 Free Software Foundation, Inc.
  2. # written by Douglas C. Schmidt (schmidt@ics.uci.edu)
  3. # This file is part of GNU TRIE-GEN.
  4. # GNU TRIE-GEN is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 1, or (at your option)
  7. # any later version.
  8. # GNU trie-gen is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11. # GNU General Public License for more details.
  12. # You should have received a copy of the GNU General Public License
  13. # along with GNU trie-gen; see the file COPYING.  If not, write to
  14. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 
  15.  
  16. srcdir = .
  17.  
  18. OBJS  = trie.o compact.o main.o version.o options.o
  19. DEPEND_SOURCES = $(srcdir)/*.cc
  20.  
  21. #### package, host, target, and site dependent Makefile fragments come in here.
  22. ##
  23.  
  24. trie-gen: $(OBJS) 
  25.     $(CXX) -o $@ $(OBJS) $(LIBS)
  26.  
  27. LS_1 = /bin/ls # -1 default on most systems, not supported on all.
  28.  
  29. out.cc: trie-gen
  30.     @echo "Generating a compacted minimal-prefix trie for files in /bin"
  31.     $(LS_1) /bin | ./trie-gen -c > out.cc
  32.  
  33. check: out.o test.o
  34.     $(CXX) out.o test.o $(LIBS)
  35.     $(LS_1) /bin | ./a.out -v
  36.  
  37. run_tests: check
  38.  
  39. distrib: 
  40.     (cd ..; rm -f trie-gen.tar.Z; tar cvf trie-gen.tar trie-gen; \
  41.                 compress trie-gen.tar)
  42.  
  43. # DO NOT DELETE THIS LINE -- g++dep uses it.
  44. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  45.  
  46. compact.o : $(srcdir)/compact.cc $(srcdir)/compact.h 
  47. main.o : $(srcdir)/main.cc $(srcdir)/options.h $(srcdir)/trie.h $(srcdir)/compact.h 
  48. options.o : $(srcdir)/options.cc $(srcdir)/options.h 
  49. trie.o : $(srcdir)/trie.cc $(srcdir)/trie.h $(srcdir)/compact.h 
  50. version.o : $(srcdir)/version.cc 
  51.  
  52. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  53.